Mass flow controller with improved dynamic response

ABSTRACT

A system and method of characterizing or controlling a flow of a fluid is provided that involves a sensor conduit and a bypass. A plurality of fluids may be utilized in the flow control device based on characteristic information of the device generated during calibration thereof. The characteristic information, in turn is based on a dimensionless parameters, such as adjusted dynamic pressure and adjusted Reynolds number.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a Continuation Application of application Ser. No.12/197,888 filed on Aug. 25, 2008, entitled MASS FLOW CONTROLLER WITHIMPROVED DYNAMIC, the entire contents of which are incorporated hereinby reference.

BACKGROUND OF THE INVENTION Technical Field of the Invention

The present invention relates generally to methods and systems fordetermining the mass flow rate of a fluid, and more particularly to theoperation of mass flow controllers.

Many industrial processes require precise control of various processfluids. For example, in the pharmaceutical and semiconductor industries,mass flow controllers are used to precisely measure and control theamount of a process fluid that is introduced to a process tool. A fluidcan be any type of matter in any state that is capable of flow such asliquids, gases, and slurries, and comprising any combination of matteror substance to which controlled flow may be of interest.

Conventional mass flow controllers (MFCs) generally include four mainportions: a flow meter, a control valve, a valve actuator, and acontroller. The flow meter measures the mass flow rate of a fluid in aflow path and provides an electrical signal indicative of that flowrate. Typically, the flow meter may include a mass flow sensor and abypass. The mass flow sensor measures the mass flow rate of fluid in asensor conduit that is fluidly coupled to the bypass. The mass flow rateof fluid in the sensor conduit is related to the mass flow rate of fluidflowing in the bypass, with the sum of the two being the total flow ratethrough the flow path controlled by the mass flow controller.

FIG. 1 shows schematically a typical mass flow controller 100 thatincludes a block 110, which is the platform on which the components ofthe MFC are mounted. A thermal mass flow meter 140 and a valve assembly150 containing a valve 170 are mounted on the block 110 between a fluidinlet 120 and a fluid outlet 130. The thermal mass flow meter 140includes a bypass 142 through which typically a majority of fluid flowsand a thermal flow sensor 146 through which a smaller portion of thefluid flows.

Thermal flow sensor 146 is contained within a sensor housing 102(portion shown removed to show sensor 146) mounted on a mounting plateor base 108. Sensor 146 is a small diameter tube, typically referred toas a capillary tube, with a sensor inlet portion 146A, a sensor outletportion 146B, and a sensor measuring portion 146C about which tworesistive coils or windings 147, 148 are disposed. In operation,electrical current is provided to the two resistive windings 147, 148,which are in thermal contact with the sensor measuring portion 146C. Thecurrent in the resistive windings 147, 148 heats the fluid flowing inmeasuring portion 146 to a temperature above that of the fluid flowingthrough the bypass 142. The resistance of windings 147, 148 varies withtemperature. As fluid flows through the sensor conduit, heat is carriedfrom the upstream resistor 147 toward the downstream resistor 148, withthe temperature difference being proportional to the mass flow ratethrough the sensor.

An electrical signal related to the fluid flow through the sensor isderived from the two resistive windings 147,148. The electrical signalmay be derived in a number of different ways, such as from thedifference in the resistance of the resistive windings or from adifference in the amount of energy provided to each resistive winding tomaintain each winding at a particular temperature. Examples of variousways in which an electrical signal correlating to the flow rate of afluid in a thermal mass flow meter may be determined are described, forexample, in commonly owned U.S. Pat. No. 6,845,659, which is herebyincorporated by reference. The electrical signals derived from theresistive windings 147,148 after signal processing comprise a sensoroutput signal.

The sensor output signal is correlated to mass flow in the mass flowmeter so that the fluid flow can be determined when the electricalsignal is measured. The sensor output signal is typically firstcorrelated to the flow in sensor 146, which is then correlated to themass flow in the bypass 142, so that the total flow through the flowmeter can be determined and the control valve 170 can be controlledaccordingly. The correlation between the sensor output signal and thefluid flow is complex and depends on a number of operating conditionsincluding fluid species, flow rate, inlet and/or outlet pressure,temperature, etc.

The process of correlating raw sensor output to fluid flow entailstuning and/or calibrating the mass flow controller and is an expensive,labor intensive procedure, often requiring one or more skilled operatorsand specialized equipment. For example, the mass flow sensor may betuned by running known amounts of a known fluid through the sensorportion and adjusting certain signal processing parameters to provide aresponse that accurately represents fluid flow. For example, the outputmay be normalized, so that a specified voltage range, such as 0 V to 5 Vof the sensor output, corresponds to a flow rate range from zero to thetop of the range for the sensor. The output may also be linearized, sothat a change in the sensor output corresponds linearly to a change inflow rate. For example, doubling of the fluid output will cause adoubling of the electrical output if the output is linearized. Thedynamic response of the sensor is determined, that is, inaccurateeffects of change in pressure or flow rate that occur when the flow orpressure changes are determined so that such effects can be compensated.

A bypass may then be mounted to the sensor, and the bypass is tuned withthe known fluid to determine an appropriate relationship between fluidflowing in the mass flow sensor and the fluid flowing in the bypass atvarious known flow rates, so that the total flow through the flow metercan be determined from the sensor output signal. In some mass flowcontrollers, no bypass is used, and the entire flow passes through thesensor. The mass flow sensor portion and bypass may then be mated to thecontrol valve and control electronics portions and then tuned again,under known conditions. The responses of the control electronics and thecontrol valve are then characterized so that the overall response of thesystem to a change in set point or input pressure is known, and theresponse can be used to control the system to provide the desiredresponse.

When the type of fluid used by an end-user differs from that used intuning and/or calibration, or when the operating conditions, such asinlet and outlet pressure, temperature, range of flow rates, etc., usedby the end-user differ from that used in tuning and/or calibration, theoperation of the mass flow controller is generally degraded. For thisreason, the flow meter can be tuned or calibrated using additionalfluids (termed “surrogate fluids”) and or operating conditions, with anychanges necessary to provide a satisfactory response being stored in alookup table. U.S. Pat. No. 7,272,512 to Wang et al., for “Flow SensorSignal Conversion,” which is owned by the assignee of the presentinvention and which is hereby incorporated by reference, describes asystem in which the characteristics of different gases are used toadjust the response, rather than requiring a surrogate fluid tocalibrate the device for each different process fluid used.

Control electronics 160 control the position of the control valve 170 inaccordance with a set point indicating the desired mass flow rate, andan electrical flow signal from the mass flow sensor indicative of theactual mass flow rate of the fluid flowing in the sensor conduit.Traditional feedback control methods such as proportional control,integral control, proportional-integral (PI) control, derivativecontrol, proportional-derivative (PD) control, integral-derivative (ID)control, and proportional-integral-derivative (PID) control are thenused to control the flow of fluid in the mass flow controller. A controlsignal (e.g., a control valve drive signal) is generated based upon anerror signal that is the difference between a set point signalindicative of the desired mass flow rate of the fluid and a feedbacksignal that is related to the actual mass flow rate sensed by the massflow sensor. The control valve is positioned in the main fluid flow path(typically downstream of the bypass and mass flow sensor) and can becontrolled (e.g., opened or closed) to vary the mass flow rate of fluidflowing through the main fluid flow path, the control being provided bythe mass flow controller.

In the illustrated example, the flow rate is supplied by electricalconductors 158 to a closed loop system controller 160 as a voltagesignal. The signal is amplified, processed and supplied to the controlvalve assembly 150 to modify the flow. To this end, the controller 160compares the signal from the mass flow sensor 140 to predeterminedvalues and adjusts the proportional valve 170 accordingly to achieve thedesired flow.

FIG. 2 illustrates a schematic block diagram of a typical mass flowcontroller 200. The mass flow controller illustrated in FIG. 2 includesa flow meter 210, a Gain/Lead/Lag (GLL) controller 250, a valve actuator260, and a valve 270.

The flow meter 210 is coupled to a flow path 203. The flow meter 210senses the flow rate of a fluid in the flow path, or in a portion of theflow path, and provides a raw flow signal indicative of the sensed flowrate. The raw flow signal is typically conditioned, that is, it isnormalized, linearized, and compensated for dynamic response. Aconditioned flow signal FS2 is provided to a first input of GLLcontroller 250. The conditioned flow signal FS2 is also provided to asignal filter 220, which provides appropriate signal levels as input toa display 225, which displays the flow rate to an operator.

In addition, GLL controller 250 includes a second input to receive a setpoint signal SI2. A set point refers to an indication of the desiredfluid flow to be provided by the mass flow controller 200. The set pointsignal SI2 may first be passed through a slew rate limiter or filter 230prior to being provided to the GLL controller 250. Filter 230 serves tolimit instantaneous changes in the set point in signal SI2 from beingprovided directly to the GLL controller 250, such that changes in theflow take place over a specified period of time. It should beappreciated that the limiter or filter 230 may be omitted, and that anyof a variety of signals capable of providing indication of the desiredfluid flow is considered a suitable set point signal. The term setpoint, without reference to a particular signal, describes a value thatrepresents a desired fluid flow.

Each of the components of MFC 200 has an associated gain, which gainscan be combined to determine a system gain. In block 240, a reciprocalgain term G is formed by taking the reciprocal of a system gain term andapplying it as one of the inputs to the GLL controller. It should beappreciated that the reciprocal gain term may be the reciprocal of allor fewer than all of the gain terms associated with the variouscomponents around the control loop of the mass flow controller. Forexample, improvements in control and stability may be achieved byforming the reciprocal of the product of the individual component gainterms. However, in preferred embodiments, gain term G is formed suchthat the loop gain remains a constant (i.e., gain G is the reciprocal ofthe system gain term).

Pressure sensed at the inlet 208 or elsewhere provides a pressure signal290 to flow meter 210 to compensate for spurious indications due topressure transients. Further, the pressure signal may be used by GLLcontroller 250 for feed forward control of the valve. Also, the pressuresignal may be used to adjust the gain in a GLL controller.

Based in part on the flow signal and the set point signal SI2, the GLLcontroller 250 provides a drive signal DS to the valve actuator 260 thatcontrols the valve 270. The valve 270 is typically positioned downstreamfrom the flow meter 210 and permits a certain mass flow rate depending,at least in part, upon the displacement of a controlled portion of thevalve 270. The controlled portion of the valve 270 may be a moveableplunger placed across a cross-section of the flow path 203. The valve270 controls the flow rate in the fluid path by increasing or decreasingthe area of an opening in the cross section where fluid is permitted toflow. Typically, mass flow rate is controlled by mechanically displacingthe controlled portion of the valve by a desired amount. The termdisplacement is used generally to describe the variable of a valve onwhich mass flow rate is, at least in part, dependent. As such, the areaof the opening in the cross section is related to the displacement ofthe controlled portion, referred to generally as valve displacement.

The displacement of the valve is often controlled by a valve actuator,such as a solenoid actuator, a piezoelectric actuator, a stepperactuator etc. In FIG. 2, valve actuator 260 is a solenoid type actuator;however, the present invention is not so limited, as other alternativetypes of valve actuators may be used. The valve actuator 260 receivesdrive signal DS from the controller and converts the signal DS into amechanical displacement of the controlled portion of the valve. Ideally,valve displacement is purely a function of the drive signal. However, inpractice, there may be other variables that affect the position of thecontrolled portion of the valve.

When the input pressure changes, for a brief period of time the sensoroutput does not accurately indicate the mass flow. To mitigate thiseffect, some mass flow controllers include a pressure transducer.Pressure transducers allow tuning of the dynamic response of the deviceas a function of pressure, which in turn can provide a faster response,especially at low inlet pressures. For example, U.S. Pat. No. 7,273,063to Lull et al., which is commonly owned with the present application andwhich is hereby incorporated by reference, uses signals from a pressuretransducer to modify the sensor signal to compensate for some pressurerelated transient effects and provides some compensation for changes inthe amount of gas in the inventory volume.

There is some unavoidable internal volume between the flow meter and thecontrol valve. That volume, referred to as an “inventory volume,” (e.g.140 of FIG. 1, and 280 of FIG. 2) contains a small amount of gas thatvaries with pressure and temperature. An inventory volume exists betweenthe flow meter and any downstream restriction, with the control valvebeing an example of a restriction. As the input pressure to the flowmeter changes, a certain net amount of fluid flows into or out of theinventory volume to equalize the inventory volume pressure with that ofthe rest of the system, thus changing the amount, that is the mass, offluid stored in that inventory volume. When input or output pressurechanges, there is a net flow into or out of the inventory volume, andthis leads to a discrepancy between the flow through the flow meter andthe flow actually delivered to the process. U.S. Pat. No. 7,273,063compensates for this by simply differentiating the inlet pressure andsubsequently applying a filter, for example, to generate a transientcompensating signal that nominally matches that spike for the signalinside the flow meter. The transient compensating signal is subtractedfrom the signal from the flow meter to compensate for the pressurechange. The technique of U.S. Pat. No. 7,273,063 provides accuratesensor output for some gases, but does not provide sufficiently accuratesignals for other gases.

While the presence of the inventory volume is known and attempts havebeen made to compensate for the volume to properly indicate flow,present methods are insufficiently accurate for the increasinglydemanding standards of industry.

SUMMARY OF THE INVENTION

An object of the invention is to provide improved accuracy in flowsensors and flow controllers.

The present invention provides a more accurate indication of gas flowthrough a flow controller by accounting for the compressibility of thegas when correcting a flow signal for inaccuracies caused by changes inpressure.

The foregoing has outlined rather broadly the features and technicaladvantages of the present invention in order that the detaileddescription of the invention that follows may be better understood.Additional features and advantages of the invention will be describedhereinafter. It should be appreciated by those skilled in the art thatthe conception and specific embodiment disclosed may be readily utilizedas a basis for modifying or designing other structures for carrying outthe same purposes of the present invention. For example, both pressureand temperature are required for calculations of the preferredembodiments. The pressure measurement used can be obtained, forinstance, directly from inlet pressure, from a transducer exposeddirectly to the inventory volume, or approximated. Similarly, thetemperature measurement used can be obtained, for instance, from theflow sensor body temperature or average gas temperature in the inventoryvolume. It should also be realized by those skilled in the art that suchequivalent constructions do not depart from the spirit and scope of theinvention as set forth in the appended claims.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more through understanding of the present invention, andadvantages thereof, reference is now made to the following descriptionstaken in conjunction with the accompanying drawings, in which:

FIG. 1 illustrates a conventional thermal mass flow controller;

FIG. 2 illustrates a schematic block diagram of a mass flow;

FIG. 3 is a flow chart showing one preferred method of the presentinvention.

FIG. 4 is a chart illustrating normalized outputs of the stages of apreferred signal filter of the present invention.

FIG. 5 is a chart illustrating the scaled filter section outputs of FIG.4 and the resulting sum for a preferred embodiment of the presentinvention.

FIG. 6 illustrates an algorithm of a preferred embodiment of the presentinvention.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

While the mass flow controller described in U.S. Pat. No. 7,273,063adequately compensates the sensor readings for pressure transients forsome applications, it suffers from three significant shortcoming:

1. It does not adequately account for gas compressibility;

2. It does not adequately deal with nonlinearities in the flow meter;and

3. It does not adequately compensate for changes in flow meter dynamicresponse on different gasses or at different flow rates.

When the input pressure to an MFC changes the flow meter provides aninaccurate flow signal that does not correspond to the actual flow ofgas through the valve and to the process tool. A portion of theinaccurate signal corresponds to the actual amount of gas that flowsinto or out of the inventory volume; another portion of the inaccuratesignal is caused by the dynamic response of the flow meter to thetransient changes in the gas flow through the meter as the pressurechanges. Thus, an accurate correction not only compensates for the gasflowing into or out of the inventory volume, but also for the inaccuracyof the flow sensor signal caused by the unsettled thermal environment inthe flow sensor caused by the change in flow. While the actual flow intoor out of inventory volume is thought to occur relatively quickly, onthe order of a millisecond, the portion of the inaccurate signal causedby the dynamic response of the meter is thought to last longer, on theorder of a second, which, if not corrected, can lead to a significantdistortion of the measured flow.

Preferred embodiments correct for this transient response to changes inpressure causing net flow into or out of the inventory volume, so that amore accurate flow is reported to the control system of a mass flowcontroller to adjust the valve position and is reported to the processtool operator. Preferred embodiments of the present invention compensatefor the inventory space by properly accounting for gas compressibility,non-linearities in the flow meter, and changes in flow meter dynamicresponse on different gasses and at different flow rates.

Embodiments of the invention substantially improve flow measurementaccuracy, particularly on non-ideal gases, such as SF₆, and on highlynon-linear flow meters, by substantially improving pressure-transientperformance compared to prior art mass flow controllers. Accounting forthe compressibility significantly improves the measurement accuracy forgases that do not follow the ideal gas law (PV=nRT).

FIG. 3 shows an overview of the steps of a preferred embodiment of thepresent invention. Several of the steps are explained later in moredetail. In step 302, the system verifies that pressure information isavailable. If no pressure information is available, for example, becausethe pressure transducer is not providing a pressure signal input to theflow meter, then pressure effects on gas in the inventory volume cannotbe calculated and the process ends at block 304. The cause of the lackof pressure information is preferably investigated by an operator andcorrected before the process restarts.

If pressure information is available, the compressibility of the fluidis determined in step 306. The compressibility depends on the gasspecies and the pressure and the temperature of the gas. In step 308,the system determines whether it is in an operating state in whichinventory gas compensation is required. For example, if the operatorsets the valve to stop the gas flow, then the gas flow rate through thevalve is known to be zero, and so no adjustment to the sensor output isrequired to indicate an accurate flow rate. If no inventory gascompensation is required, the process ends at step 310.

If inventory gas compensation is required, the process continues in step312, in which a value related to gas-in-inventory is calculated. Asdescribed above, there is a difference between the flow indicated by theflow sensor and the actual flow through the valve if, after passingthrough the flow sensor, there is a net gain or loss of gas in theinventory volume. Thus, the inventory volume compensation depends not onthe actual amount of gas in the inventory volume itself, but on thechange of the amount of gas in the inventory volume. If the amount ofgas in the inventory volume remained constant, then no compensation forthe inventory volume would be required. It is therefore not necessary toactually calculate the exact amount of gas in the inventory volume, itis only necessary to determine the change in the amount of gas. Thechange can be determined from a value related to the amount gas in theinventory volume, without calculating the actual amount of the gas inthe inventory volume. For example, an inventory value that isproportional to the inventory amount can be calculated.

In step 314, a value proportional to the derivative with respect to timeof gas-in-inventory is calculated from the inventory values determinedin step 312.

In step 316, the value proportional to the derivative determined in step314 is applied to a signal filter to produce a signal corresponding tothe inaccurate flow signal produced by the flow sensor in response to aninput pressure change. Because the input to the filter is the valuerelated to the time related change of gas amount in the inventory volumedetermined in step 314, the signal produced by the filter will depend onthe variables used to produce the derivative, that is, thecompressibility of the gas, the change in pressure, and the temperatureof the gas. Thus, the signal from the filter can more accurately reflectthe actual operating conditions of the flow meter.

In step 318, a gain factor, specific for the process gas being used inthe MFC, is applied to the signal calculated in step 316 to produce acompensation signal that matches the magnitude of the inaccurate flowsignal from the flow meter on the actual process gas. In step 320, thecompensation signal is subtracted from the output of the sensor, whicheliminates the effects of changes in inventory value from the flowsignal so that the flow meter is more accurately indicating the actualfluid flow to a process tool.

Below are described in more detail several exemplary methods of carryingout some of the steps of FIG. 3. The invention is not limited to theseexemplary methods. For determining the compressibility of the gas instep 306, various algorithms are known. Some calculations ofcompressibility are very accurate over a wide range of pressure andtemperature, but are not well suited for implementation directly in thedevice firmware. A preferred algorithm is sufficiently accurate toprovide flow information at the required accuracy, while requiringrelatively little processing and little data storage. One algorithmexpresses the compressibility, Z(P,T), as a function of pressure andtemperature using the alternate form of the well known virial expansion,which expresses the pressure of a many-particle system in equilibrium asa power series in the pressure. A suitable implementation truncates thepower series at the second order term.

Z(P,T)=1+B′(T)*P+C′(T)*P2  [Equation.1]

where:

P is the absolute pressure of the gas in the inventory volume, forcomputational convenience P may be expressed as a fraction of the fullscale range of the absolute pressure signal available to the flow meter(P2=P*P is the notation for the second order term).

B′ and C′ are the alternate form of the second and third virialcoefficients.

T is the absolute temperature of the gas in the inventory volume,expressed in degrees Kelvin (K).

The alternate form of the 2nd & 3rd virial coefficients can each beapproximated over a reasonable temperature range as cubic polynomials of1/T:

B′(T).about.B(T)=B0+B1/T+B2/T2+B3/T3

C′(T).about.C(T)=C0+C1/T+C2/T2+C3/T3

Values of Z(P,T) may be obtained spanning the range of operatingpressures and temperatures anticipated for the flow meter. The Z(P,T)values may come from measurement data or may be computed using asuitable equation of state model. One suitable model for computingZ(P,T) is that of Lee and Kesler using the three-parameter principle ofcorresponding states of Pitzer. For a particular temperature Ti thevalues of Z(P,Ti) at several different pressures (e.g. P1, P2, P3, . . ., Pn) form a curve that may be fit by suitable mathematical process todetermine B′(Ti) and C′(Ti) satisfying Equation.1 at temperature Ti overthe pressure range P1-Pn. The values of B′(T) and C′(T) may be thusdetermined at several different temperatures (e.g. T1, T2, T3, . . . ,Tn). The temperature related sequence of values B′(T1), B′(T2), B′(T3),. . . , B′(Tn) form a curve that may be fit by a suitable mathematicalprocess to determine the approximation B(T). Similarly the temperaturerelated sequence of values C′(T1), C′(T2), C′(T3), . . . , C′(Tn) form acurve that may be fit by a suitable mathematical process to determinethe approximation C(T). Least squares fitting is one example of asuitable mathematical process for determining B(T) and C(T) as cubicpolynomials of 1/T. A preferred algorithm then uses the compressibilityapproximation:

Za(P,T)=1+(B0+B1/T+B2/T2+B3/T3)*P+(C0+C1/T+C2/T2+C3/T3)*P2  [Equation.2]

To determine a value related to the gas in inventory for step 312, onecan first determine an expression for the actual amount gas ininventory, and then derive a simpler expression proportional to the gasin inventory, the simpler expression being used by firmware duringoperation of the MFC. The actual amount of gas in inventory does notneed to be calculated. The gas-in-inventory can be calculated as:

$\begin{matrix}{{Ig} = {\frac{Vi}{Z\left( {P,T} \right)} \cdot \frac{P}{P\; 0} \cdot \frac{T\; 0}{T}}} & \left\lbrack {{Equation}.\mspace{14mu} 3} \right\rbrack\end{matrix}$

where:

Ig=gas stored in the inventory volume (standard cm³)

Vi=Inventory volume (cm³)

P=Pressure of the gas in the inventory volume (Pa)

P0=standard pressure (Pa)

T=Temperature of the gas in the inventory volume (K)

T0=standard temperature (K); and

Z(P,T)=Compressibility of the process gas at pressure P and temperatureT (per Equation.1 above).

As it well known, 1 standard cm³= 1/22414 mole

Because the process requires only an expression proportional to the gasin inventory, the constant terms Vi, P0, and T0 can therefore be omittedand the remaining expression will still represent a value, Mg,proportional to gas-in-inventory, leaving:

Mg=(P/(Za(P,T)*T)  [Equation.4]

where:

Za(P,T)=approximated compressibility of the process gas at pressure Pand temperature T (per Equation.2 above);

While the value of Mg above is an example of a value proportional to thegas in inventory that can be used in a preferred algorithm, theinvention is not limited to any particular value calculation.

In step 314, a value proportional to the change in time of the amount ofgas in the inventory volume is determined. The values of Mg can becalculated repeatedly as data from the pressure and temperature sensorsare updated. The values of Mg thus form a time series of discretevalues, equally spaced in time by a period τ and designated . . . ,Mg_(n−1), Mg_(n), Mg_(n+1), . . . , the derivative of Mg with respect totime can be approximated over the interval between samples n−1 and n assimply:

$\begin{matrix}{\frac{{Mg}_{n}}{t} = \frac{{Mg}_{n} - {Mg}_{n - 1}}{\tau}} & \left\lbrack {{Equation}.\mspace{14mu} 5} \right\rbrack\end{matrix}$

Since the system requires only a value proportional to the derivative ofthe amount of gas in inventory over time, and not the derivative itself,and because τ is fixed for any given device, the system omits theconstant τ from the calculation and uses the quantity Mg_(n)−Mg_(n−1) asa value proportional to the derivative. The subscripts n and n−1represent the value of the corresponding variables for the current andprevious signal processing cycles, respectively.

In step 316, the value proportional to the derivative is filtered toproduce a signal matching the dynamics of the inaccurate flow signal.The change in Mg in response to a step change in pressure is dictated bythe acoustic propagation delay and pneumatic RC time constant of theflow meter and inventory volume. Since flow meters generally have a verylow flow resistance, and the inventory volume is minimized as much aspossible in the design of the MFC, the pneumatic time constant istypically very short. Since the bypass is generally physically short andrelatively open, the acoustic propagation delay is short as well,typically less than a millisecond.

Flow meter response, however, is far slower. Flow meter dynamic responseis dominated by multiple thermal time constants in the flow sensoritself—some of which are on the order of a second. Prior art flow metersresponse is typically compensated to settle in a fraction of a second,but this still leaves a significant discrepancy between the actual flowinto or out of the inventory volume and the corresponding spike inindicated flow.

To more accurately indicate flow, the system of the present inventionproduces a compensation signal closely matching the waveform of thepressure transient induced “inaccurate flow” signal from the flow meter.The compensation signal is derived from the actual flow into or out ofthe inventory volume. This compensation signal could be produced througha wide variety of signal filters. While one preferred filter isdescribed below, the invention is not limited to any particular filter,and skilled persons can readily determine other filters that canaccomplish this task.

One suitable filter comprises a cascade of six, two-pole infiniteimpulse response, low-pass filter sections to produce a series of six“smeared out” pulses from an impulse input. These “smeared out” pulsesare then scaled and summed to produce a waveform to compensate for theinaccurate sensor signal.

Each filter section implements the equation:

J _(m,n)=2*J _(m,n−1) −J _(m,n−2)+((I _(m,n) −J _(m,n−1))*Qm−(J _(m,n−1)−J _(m,n−2)))*P _(m)

where:

I_(m,n) is the input to filter section m on signal processing cycle n

J_(m,n) is the output of filter section m on signal processing cycle n

P_(m) and Q_(m) are tuning parameters controlling the impulse responseof filter section m. The parameters P_(m) and Q_(m) are determinedempirically as described below.

The input, I_(1,n), to the first filter section is the value related tothe change in inventory volume calculated in step 312, that is,Mg_(n)−Mg_(n−1). For the second and subsequent cascaded filter sections,the input I is the output from the previous section, that is,I_(m,m)=J_(m−1,n). FIG. 4 shows the outputs of each filter section inthe cascade for a unit impulse in to the cascade, for typical values ofP and Q. Each output in the figure is normalized to a peak value of 1for easy visibility. The filter described produces a waveform thatclosely matches the shape of the inaccurate flow signal, but at somearbitrary magnitude. This signal must then be scaled to match the actualmagnitude of the inaccurate flow signal on a specific device. Lines401-406 represent respectively, the output of the filter stages onethrough six.

Each of the filter section outputs is scaled by a gain factor G_(m) andsummed to get a simulated inaccurate flow signal for each time intervaln for the specific process gas being used.

${{Simulated}\mspace{14mu} {False}\mspace{14mu} {Signal}_{n}} = {\sum\limits_{m = 1}^{6}\; {G_{m} \cdot J_{m,n}}}$

FIG. 5 shows the scaled filter section outputs (Gm*Jm,n) and theresulting sum for a typical application. Lines 501-506 representrespectively, the scaled output of the filter stages one through six.

This scaling must take into account several factors:

-   -   The inventory volume varies from device to device.    -   The magnitude of the filter output varies depending on the        inventory volume and the fitting procedure used to select the        specific set of G values to be used.    -   The range of the flow meter varies from device to device, and        from process gas to process gas on a specific device.

All of the required parameters—P_(m), Q_(m), and G_(m)—can be determinedduring production of the flow meter comprised of a sensor and a bypassby a procedure that includes changing the input pressure to the flowmeter by a representative amount at a representative rate and thenobserving the sensor electrical output and measuring the actual flow.The discrepancy between the actual measured fluid flow and the sensoroutput represents the “false flow.” Software optimizes the filterparameters to give a waveform closely matching the shape of the measuredinaccurate flow signal, and matching its amplitude expressed in sccm, orstandard cm³ per minute.

The P and Q values can be selected by an N-dimensional nonlinearminimizer, using for each trial G values obtained by a linear leastsquares fit

If sensor response and response compensation are sufficientlyreproducible, then nominal P, Q, and G values can be determined for atypical sensor through testing with very fast pressure transients on afew sample sensors and the average values applied across some largerpopulation.

Note that the specific G values used are somewhat arbitrary, thoughtheir relative values are critical to the filter performance. The entirewaveform may be scaled up or down, adjusting all G values by the samefactor in order to match their magnitudes to that of a specific flowmeter. In some embodiments, a single scale factor is applied in step 318to the filter output, in addition to the individual scale factorsapplied to each filter section.

The gain factor applied in step 318 is inversely proportional to thenominal flow range of the device on a specific process gas, expressed insccm. This proportionality constant is required because the flow rate,at the point where the compensation signal is injected, is expressed asa fraction of the nominal flow range of the device on the selectedprocess gas. If the flow signal were expressed directly in sccm, no gainadjustment would be needed. This is because the filter input is directlyproportional to the net flow rate (in sccm) into or out of the inventoryvolume—completely independent of gas species—so long as thecompressibility calculation and measured temperature and pressure arecorrect.

If the filter parameters for the inventory volume compensation aredetermined at the factory before the sensor is calibrated, the indicatedflow signal during the inventory volume compensation correction will beincorrect by an amount dependent on the flow rate, and the gain factorneeds to compensate for this error. The gain factor can be determinedempirically, or from the non-linearity of the sensor and the maximum netflow into or out of the inventory volume.

In other embodiments, it may be desirable to record the compensationtransient data at a point where it is convenient in terms of themanufacturing process, and then convert the data to a calibrated flowsignal and perform the curve fit and gain adjustment after finalcalibration. Skilled person can determine a gain constant based on anunderstanding of a particular flow sensor device and a particularproduction process flow.

In some embodiments, the inventory volume correction can be confined toflow rates where the flow meter is essentially linear, and then thesoftware could scale based on the difference between the estimatedlow-flow slope of the calibration curve (during the compensationprocess) and the final low-flow slope of the calibration curve once avalid curve is determined.

Note that while the filter parameters are preferably determined at thefactory and fixed for the sensor, the gain adjustment is determinedduring operation because it is proportional to the fluid flow.

The algorithm used for the compensation for the inventory volume istypically stored in firmware on the circuit board of the mass flowcontroller. Depending on the processing power available in the specificapplication, the inventory volume compensation filter cascade can be runat less than the full signal processing rate, with a portion of thefilter being run on each processing cycle.

The algorithm described above compensates for the linearized flow signalrather than the raw sensor output. Skilled persons could readily createalgorithms to operate on the raw flow signal. When correcting thelinearized flow signal, either the final inventory gas compensation gainadjustment must be made after the device is calibrated for a particulargas, or the calibration process must provide a calibration to convertsensor output to determine the inventory gas compensation gainadjustment for the particular gas used. This is because the parametersused in the filter, P, Q, and G, will vary with the gas used. If the gasused in the process is different from the gas used to determine thefilter parameters, then the sensor output will need to be compensatedfor the different gas. This can be done either by performing calibrationon every unit with nitrogen and using known methods of adjusting for theprocess gas, or by performing a final inventory gas compensation gainadjustment as part of a calibration process using the process gas orsuitable surrogate gas. The correction signal should coincide temporallywith the sensor output signal being corrected. Due to relatively longtime constants associated with heat diffusion in the mechanicalstructures of a heated capillary flow sensor there is typically somedelay between detection of a change in pressure and the output of thefalse signal from the flow meter. The delay inherent in the signalprocessing, particularly in the multistage filter, may be adequate totemporally coordinate the correction signal with the sensor falsesignal; if not, an additional delay element may be added to the circuit.

Also, since the algorithm above is compensating the linearized flowsignal, the result will be sensitive to any discrepancy between thederivative of the linearization curve and the derivative of the actualflow meter output-versus-flow curve. Such nonlinearities would mostoften arise at low flow rates due to uncorrected sensor offsets duringfinal calibration, such as residual valve heating effects, potentiallyleading to a low-flow “hook” in the derivative of the linearizationcurve. Such irregularities can degrade accuracy of the inventory gascompensation algorithm, and should be avoided in most embodiments.

Because temperature changes relatively slowly, calculation oftemperature dependent virial coefficients can be scheduled at theconvenience of the firmware. They are preferably updated at least 10times per second, but updating them more often than the temperature isupdated is not useful. Calculation of flow compensation is preferablyperformed as part of normal flow meter processing on every signalprocessing cycle, and should occur as soon as the linearized flow ratebecomes available.

All other firmware calculations defined above, such as thecompressibility, the value corresponding to the inventory value, thevalue corresponding to the amount of gas in the inventory volume, thevalue corresponding to the derivative of the amount of gas in theinventory volume, and the compensation signal are preferably preformedon every signal processing cycle. These calculations can begin as soonas the normalized flow rate calculation is available, and are preferablycompleted before the drive signal to the valve actuator is produced.

Although the present invention and its advantages have been described indetail, it should be understood that various changes, substitutions andalterations can be made herein without departing from the spirit andscope of the invention as defined by the appended claims. For example,while the embodiment described above compensates for input pressuretransients, skilled persons can recognize that embodiments could alsocompensate for changes in output pressure in the case of devices whereinthe flow meter is not substantially isolated from the output pressure byaction of the control valve (e.g. in a reverse flow device having thecontrol valve upstream of the flow meter). Moreover, the scope of thepresent application is not intended to be limited to the particularembodiments of the process, machine, manufacture, composition of matter,means, methods and steps described in the specification. For example,both pressure and temperature are required for calculations of thepreferred embodiments. The pressure measurement used can be obtained,for instance, directly from inlet pressure, from a transducer exposeddirectly to the inventory volume, or approximated. Similarly, thetemperature measurement used can be obtained, for instance, from theflow sensor body temperature or average gas temperature in the inventoryvolume. The invention is not limited to any particular means forgenerating an electrical signal corresponding to the flow. While anembodiment using two resistive coils is described, other embodiments canuse three or any number of resistive coils, or other temperaturesensitive elements, such as thermocouples or thin film resistors. Also,the invention is not limited to mass flow meters, but could be appliedto other types of flow meters, such as volume flow meters.

While the inventory volume was described in the embodiment above ascomprising the volume between the flow sensor and the adjustable valve,the inventory volume could comprise any volume between the flow sensorand a flow restriction, such as an orifice. As one of ordinary skill inthe art will readily appreciate from the disclosure of the presentinvention, processes, machines, manufacture, compositions of matter,means, methods, or steps, presently existing or later to be developedthat perform substantially the same function or achieve substantiallythe same result as the corresponding embodiments described herein may beutilized according to the present invention. Accordingly, the appendedclaims are intended to include within their scope such processes,machines, manufacture, compositions of matter, means, methods, or steps.

1. A mass flow controller for measuring flow of a fluid, comprising: aflow meter for providing a signal corresponding to mass flow through theflow meter, the flow meter including a flow sensor; an adjustable valvefor controlling the passage of fluid out of the mass flow controller; afluid path through the mass flow controller, the fluid path including aninventory volume between the flow sensor and the adjustable valve; apressure transducer for providing a signal corresponding to the fluidpressure at a position in the flow path before the adjustable valve; anda signal processor to determine the compressibility of the gas in thefluid path using the fluid temperature and pressure and to correct thesignal from the flow sensor for inaccuracies caused by a change inpressure, the correction depending on the compressibility of the gas;and a controller to adjust the adjustable valve to control the flowthrough the mass flow controller in accordance with the corrected signalcorresponding to the fluid flow.
 2. The mass flow controller of claim 1in which the signal processor is programmed to calculate compressibilityusing a form of the virial coefficients.
 3. The mass flow controller ofclaim 1 in which the signal processor is programmed to determine asignal that compensates for the change in pressure using a valueproportional to the change in gas in the inventory volume.
 4. The massflow controller of claim 3 in which value proportional to the change ingas in the inventory volume includes a pressure term, a compressibilityterm, and a temperature term.
 5. The mass flow controller of claim 3 inwhich value proportional to the change in gas in the inventory volume isproportional to the pressure and inversely proportional to thetemperature and compressibility of the gas.
 6. The mass flow controllerof claim 1 in which the signal processor is positioned on the flowmeter.
 7. The mass flow controller of claim 1 in which the signalprocessor is part of the controller.
 8. The mass flow controller ofclaim 1 further comprising a temperature sensor.
 9. A method ofdetermining fluid flow through a mass flow controller including a flowsensor, comprising: measuring pressure in a fluid path; measuringtemperature in the fluid path; determining compressibility of the gasusing the pressure and temperature measurement; and modifying, using thedetermined compressibility of the gas, a signal from the flow sensor tocorrect for changes in pressure.
 10. The method of claim 9 in whichmodifying a signal from the flow sensor includes modifying a signalderived from one or more temperature sensitive elements.
 11. The methodof claim 10 in which the one or more temperature sensitive elementscomprise heated resistive winding positioned along a tube through whichthe fluid being measured flows.
 12. The method of claim 10 in which theone or more temperature sensitive elements comprise a thermocouple or athin film resistor.
 13. The method of claim 9 in which modifying asignal from the flow sensor includes modifying a signal derived fromapplying heat in the flow path and sensing temperature at one or morepoints in the flow path, the temperatures being determined in part bythe gas flow.
 14. The method of claim 13 in which applying heat in theflow path includes applying by one or more resistive windings and inwhich sensing temperature at one or more points in the flow pathincludes sending temperature using resistive windings, a thermocouple,or a thin film resistor.
 15. The method of claim 9 in which modifying,using the determined compressibility of the gas, a signal from the flowsensor to correct for changes in pressure includes modifying the signalusing a change in the amount of gas in an inventory volume.
 16. Themethod of claim 10 in which modifying the signal using a change in theamount of gas in an inventory volume includes using the change in theamount of gas in inventory as the input of a filter.
 17. The method ofclaim 16 in which modifying the signal using a change in the amount ofgas in an inventory volume includes using the change in the amount ofgas in inventory as the input of a series of cascading filters.
 18. Themethod of claim 17 in which modifying the signal using a change in theamount of gas in an inventory volume includes using the change in theamount of gas in inventory as the input of a series of cascading secondorder filters.
 19. The method of claim 9 in which modifying a signalfrom the flow sensor to correct for changes in pressure includesmodifying a signal that has been normalized and calibrated to aparticular gas.
 20. A method of determining gas flow through a mass flowcontroller including a flow sensor, comprising: measuring pressure in afluid path; measuring temperature in the fluid path; determiningcompressibility of the gas using the pressure and temperaturemeasurement; and generating a sensor output signal derived from tworesistors in a flow sensor; modifying the sensor output signal toproduce a corrected sensor output signal, the corrected sensor outputsignal being normalized, linearized with respect to the sensor fluidflow, and corrected for changes in pressure using the compressibility ofthe gas.
 21. The method of claim 20 further comprising controlling a gasflow valve in accordance with the corrected sensor output.
 22. Themethod of claim 20 in which modifying the sensor output signal toproduce a corrected sensor output signal includes calibrating andlinearizing the sensor output before correcting the sensor output forchanges in pressure.
 23. The method of claim 20 in which determiningcompressibility of the gas using the pressure and temperaturemeasurement includes using a form of a virial expansion.
 24. The methodof claim 20 in which modifying the sensor output signal to produce acorrected sensor output signal includes determining a change in theamount of gas in the inventory volume.
 25. The method of claim 24 inwhich modifying the sensor output signal to produce a corrected sensoroutput signal includes using the change in the amount of inventoryvolume as an input to an electronic filter.
 26. The method of claim 24in which the filter produces a false flow signal that is subtracted toproduce the corrected sensor output signal.
 27. A method of controllinga valve, comprising: receiving a set point corresponding to a desiredflow rate of fluid through the valve; determining a valve drive signalto be provided to the valve that corresponds to the desired flow rate,the valve drive signal corresponding to a first displacement of thevalve under a first set of pressure conditions in a flow path leading tothe valve; measuring at least one pressure in a flow path thatcorresponds to a second set of pressure conditions that is differentthan the first set of pressure conditions; determining thecompressibility of the fluid as a function of temperature and pressuremeasured in the flowpath; and modifying the valve drive signal tocompensate for a difference in a displacement of the valve due to adifference between the first set of pressure conditions and the secondset of pressure conditions.
 28. The method of claim 27 in whichdetermining the compressibility of the fluid as a function oftemperature and pressure measured in the flow path includes determiningcompressibility using a form of the virial coefficients.
 29. The methodof claim 27 in which modifying the valve drive signal includes modifyingthe drive signal by an amount determined by the change in gas in theinventory volume.
 30. The method of claim 29 in which modifying thedrive signal by an amount determined by the change in gas in theinventory volume includes modifying the drive signal by an amountdetermined by value proportional to the change in gas in the inventoryvolume.
 31. The method of claim 29 in which modifying the drive signalby an amount determined by the change in gas in the inventory volumeincludes modifying the drive signal by an amount determined by a valueproportional to the pressure and inversely proportional to thetemperature and compressibility of the gas.
 32. A mass flow meter,comprising: a fluid path for passage of a fluid; a flow sensor throughwhich a fluid flows, the flow sensor connected to the fluid path, theflow sensor producing an electrical signal corresponding to the flow offluid through the flow sensor; a flow restriction in the fluid path, thevolume of the fluid path between the flow sensor and the restrictiondefining an inventory volume; a pressure transducer for providing asignal corresponding to the fluid pressure at a position in the flowpath before the flow restriction; and a signal processor programmed todetermine the compressibility of the gas in the fluid path using thefluid temperature and pressure and to correct the electrical signal fromthe flow sensor for inaccuracies caused by a change in pressure, thecorrection depending on the compressibility of the gas.
 33. The massflow meter of claim 32 in which the signal processor is programmed tocalculate compressibility using a form of the virial coefficients. 34.The mass flow meter of claim 32 in which the signal processor isprogrammed to determine a signal that compensates for the change inpressure using a value proportional to the change in gas in theinventory volume.
 35. The mass flow meter of claim 34 in which valueproportional to the change in gas in the inventory volume includes apressure term and a compressibility term.
 36. The mass flow meter ofclaim 34 in which value proportional to the change in gas in theinventory volume is proportional to the pressure and inverselyproportional to the temperature and compressibility of the gas.
 37. Amass flow controller for measuring flow of a fluid, comprising: a fluidinlet; a flow meter connected to the fluid inlet for providing a signalcorresponding to mass flow through the flow meter, the flow meterincluding a flow sensor; an adjustable valve for controlling the passageof fluid out of the mass flow controller through a fluid outlet; a fluidpath through the mass flow controller from the fluid inlet to the fluidoutlet, the fluid path including an inventory volume between the flowsensor and the adjustable valve; a pressure transducer for providing asignal corresponding to the fluid pressure at a position in the flowpath before the adjustable valve; and a signal processor to determinethe compressibility of the gas in the fluid path using the fluidtemperature and pressure and to correct the signal from the flow sensorfor inaccuracies caused by a change in pressure, the correctiondepending on the compressibility of the gas; and a controller to adjustthe adjustable valve to control the flow through the mass flowcontroller in accordance with the corrected signal corresponding to thefluid flow.
 38. A mass flow controller for measuring flow of a fluid,comprising: a fluid inlet; an adjustable valve connected to the fluidinlet for controlling the passage of fluid through the mass flowcontroller; a flow meter connected to a fluid outlet for providing asignal corresponding to mass flow through the flow meter, the flow meterincluding a flow sensor; a fluid path through the mass flow controllerfrom the fluid inlet to the fluid outlet, the fluid path including aninventory volume between the adjustable valve and the flow sensor; apressure transducer for providing a signal corresponding to the fluidpressure at a position in the flow path after the adjustable valve; asignal processor to determine the compressibility of the gas in thefluid path using the fluid temperature and pressure and to correct thesignal from the flow sensor for inaccuracies caused by a change inpressure, the correction depending on the compressibility of the gas;and a controller to adjust the adjustable valve to control the flowthrough the mass flow controller in accordance with the corrected signalcorresponding to the fluid flow.